/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.tcardrecordinfo.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.jeeplus.core.persistence.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import com.jeeplus.modules.tcardrecordinfo.entity.TCardcecordInfo;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * 打卡记录MAPPER接口
 * @author pr
 * @version 2022-04-22
 */
@Mapper
@Repository
public interface TCardcecordInfoMapper extends BaseMapper<TCardcecordInfo> {

    int audit(@Param("id") String id, @Param("punchType") String type, @Param("auditStatus") String status);

    int cardCount();

    int wayCardCount(@Param("punchType") String punchType);

    int buildingCardCount(@Param("punchType") String punchType);

    List<Map<String,Object>> queryAllMap(Map<String,Object> map);
}